﻿




<!DOCTYPE html>
<html>
<html xmlns:th="http://www.thymeleaf.org">

<!-- Mirrored from admindesigns.com/demos/absolute/1.1/admin_forms-validation.html by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 06 Aug 2015 02:56:15 GMT -->
<head>
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">

<title> 帖子管理 </title>

<link rel="stylesheet" type="text/css" th:href="@{assets/skin/default_skin/css/theme.css}">
<link rel="stylesheet" type="text/css" th:href="@{assets/admin-tools/admin-forms/css/admin-forms.css}">
<link rel="shortcut icon" href="assets/img/favicon.ico">
</head>

<body class="admin-validation-page" data-spy="scroll" data-target="#nav-spy" data-offset="200">
<div id="main">
    <header class="navbar navbar-fixed-top navbar-shadow">
        <div class="navbar-branding">
            <a class="navbar-brand" href="dashboard.html">
                <b>社区管理</b>
            </a>
            <span id="toggle_sidemenu_l" class="ad ad-lines"></span>
        </div>
        <ul class="nav navbar-nav navbar-right">
            <li class="dropdown menu-merge">
                <a href="#" class="dropdown-toggle fw600 p15" data-toggle="dropdown">
                    <img th:src="@{${session.user.avatar}}" alt="avatar" class="mw30 br64">
                    <span class="hidden-xs pl15"> Ardai </span>
                    <span class="caret caret-tp hidden-xs"></span>
                </a>
                <ul class="dropdown-menu list-group dropdown-persist w250" role="menu">
                    <li class="dropdown-footer">
                        <a th:href="@{/list}" class="">
                            <span class="fa fa-power-off pr5"></span> 返回首页 </a>
                    </li>
                </ul>
            </li>
        </ul>
    </header>
    <aside id="sidebar_left" class="nano nano-light affix">
        <div class="sidebar-left-content nano-content">
            <header class="sidebar-header">
                <div class="sidebar-widget author-widget">
                    <div class="media">
                        <a class="media-left" href="#">
                            <img th:src="@{${session.user.avatar}}" class="img-responsive">
                        </a>
                        <div class="media-body">
                            <div class="media-author">ardai--贴主</div>
                        </div>
                    </div>
                </div>
                <div class="sidebar-widget search-widget hidden">
                    <div class="input-group">
                        <span class="input-group-addon">
                            <i class="fa fa-search"></i>
                        </span>
                        <input type="text" id="sidebar-search" class="form-control" placeholder="Search...">
                    </div>
                </div>
            </header>
            <ul class="nav sidebar-menu">
                <li class="sidebar-label pt15">基础信息管理</li>
                <li>
                    <a class="accordion-toggle" href="#">
                        <span class="glyphicon glyphicon-check"></span>
                        <span class="sidebar-title">帖子管理</span>
                        <span class="caret"></span>
                    </a>
                    <ul class="nav sub-nav">
                        <li>
                            <a th:href="@{/admFindPost}">
                                <span class="glyphicon glyphicon-calendar"></span> 所有帖子 </a>
                        </li>
                    </ul>
                </li>
                <li>
                    <a class="accordion-toggle" href="#">
                        <span class="fa fa-columns"></span>
                        <span class="sidebar-title">用户管理</span>
                        <span class="caret"></span>
                    </a>
                    <ul class="nav sub-nav">
                        <li>
                            <a th:href="@{/admFindAllUser}">
                                <span class="glyphicon glyphicon-calendar"></span> 所有用户</a>
                        </li>
                    </ul>
                </li>
            </ul>
            <div class="sidebar-toggle-mini">
                <a href="#">
                    <span class="fa fa-sign-out"></span>
                </a>
            </div>
        </div>
    </aside>
    <section id="content_wrapper">
<section id="content" class="table-layout animated fadeIn">
    <div class="tray tray-center">
        <div class="content-header">
            <h2> 用户列表 </h2>
            <p class="lead"></p>
        </div>
        <div class="admin-form theme-primary mw1000 center-block" style="padding-bottom: 175px;">
            <div class="panel  heading-border">
                <div class="panel-menu">
                    <div class="row">
                        <div class="hidden-xs hidden-sm col-md-3">
                            <div class="btn-group">
                                <button type="button" class="btn btn-default light">
                                    <i class="fa fa-refresh"></i>
                                </button>
                                <button type="button" class="btn btn-default light">
                                    <i class="fa fa-trash"></i>
                                </button>
                                <button type="button" class="btn btn-default light">
                                    <i class="fa fa-plus" onclick="javascript:window.location.href='/department/to_add';"></i>
                                </button>
                            </div>
                        </div>
                        <div class="col-xs-12 col-md-9 text-right">
                            <div class="btn-group">
                                <button type="button" class="btn btn-default light">
                                    <i class="fa fa-chevron-left"></i>
                                </button>
                                <button type="button" class="btn btn-default light">
                                    <i class="fa fa-chevron-right"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="panel-body pn">
                    <table id="message-table" class="table admin-form theme-warning tc-checkbox-1">
                        <thead>
                        <tr class="">
                            <th class="hidden-xs">用户id</th>
                            <th class="hidden-xs">用户名</th>
                            <th class="hidden-xs">邮箱</th>
                            <th class="hidden-xs">用户级别</th>
                            <th class="hidden-xs">用户状态</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        
                            <tr th:each="user:${users}" class="message-unread">
                                <td th:text="${user.id}">111</td>
                                <td th:text="${user.username}">11111</td>
                                <td th:text="${user.email}">1111</td>
                                <td th:text="${user.owner}">11111</td>
                                <td th:text="${user.status}">1111</td>
                                <td>
                                    <a th:if="${user.status==0}" th:href="@{/admLockUser(uid=${user.id},MyStatus=${user.status+9})}">锁定</a>
                                    <a th:if="${user.status==9}" th:href="@{/admLockUser(uid=${user.id},MyStatus=${user.status-9})}">解锁</a>
                                    <a th:if="${user.owner==2}"  th:href="@{/admEditOwner(uid=${user.id},owner=1)}">贡献用户</a>
                                    <a th:if="${user.owner==2}"  th:href="@{/admEditOwner(uid=${user.id},owner=0)}">贴主用户</a>
                                    <a th:if="${user.owner==1}"  th:href="@{/admEditOwner(uid=${user.id},owner=2)}">普通用户</a>
                                    <a th:if="${user.owner==1}"  th:href="@{/admEditOwner(uid=${user.id},owner=0)}">贴主用户</a>
                                    <a th:if="${user.owner==0}"  th:href="@{/admEditOwner(uid=${user.id},owner=1)}">贡献用户</a>
                                    <a th:if="${user.owner==0}"  th:href="@{/admEditOwner(uid=${user.id},owner=2)}">普通用户</a>
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</section>

</section>
</div>
<style>
    /* demo page styles */
    body { min-height: 2300px; }

    .content-header b,
    .admin-form .panel.heading-border:before,
    .admin-form .panel .heading-border:before {
        transition: all 0.7s ease;
    }
    /* responsive demo styles */
    @media (max-width: 800px) {
        .admin-form .panel-body { padding: 18px 12px; }
    }
</style>

<style>
    .ui-datepicker select.ui-datepicker-month,
    .ui-datepicker select.ui-datepicker-year {
        width: 48%;
        margin-top: 0;
        margin-bottom: 0;

        line-height: 25px;
        text-indent: 3px;

        color: #888;
        border-color: #DDD;
        background-color: #FDFDFD;

        -webkit-appearance: none; /*Optionally disable dropdown arrow*/
    }
</style>
<script th:src="@{vendor/jquery/jquery-1.11.1.min.js}"></script>
<script th:src="@{vendor/jquery/jquery_ui/jquery-ui.min.js}"></script>
<script th:src="@{assets/admin-tools/admin-forms/js/jquery.validate.min.js}"></script>
<script th:src="@{assets/admin-tools/admin-forms/js/additional-methods.min.js}"></script>
<script th:src="@{assets/admin-tools/admin-forms/js/jquery-ui-datepicker.min.js}"></script>
<script th:src="@{assets/js/utility/utility.js}"></script>
<script th:src="@{assets/js/demo/demo.js}"></script>
<script th:src="@{assets/js/main.js}"></script>
<script type="text/javascript" th:src="@{js/pages.js}"></script>
<script type="text/javascript" th:src="@{js/items.js}"></script>
</body>
</html>

